<?php
/**

 //  DoYouHaoBaby-X Ucenter ( DoYouHaoBaby-X 计划 )
 //  +---------------------------------------------------------------------
 //
 //  “Copyright”
 //  +---------------------------------------------------------------------
 //	 | (C) 2010 - 2011 http://doyouhaobaby.net All rights reserved.
 //	 | This is not a free software, use is subject to license terms
 //  +---------------------------------------------------------------------
 //
 //  “About This File”
 //  +---------------------------------------------------------------------
 //	 | Ucenter 域名管理控制器
 //  +---------------------------------------------------------------------

*/

!defined( 'DYHB_PATH' ) && exit;

class DomainController extends InitController{

    /**
	 * 数据查询条件过滤
	 */
    public function filter_( &$arrMap ){

		$arrMap['domain_name'] = array( 'like',"%".Safe::getGpc( 'domain_name' )."%" );
	}

    /**
     * ajax点击处理
     */
    public function bInput_change_ajax_( ){

    	$sInputAjaxField = Safe::getGpc( 'input_ajax_field' );
    	$sInputAjaxVal = Safe::getGpc( 'input_ajax_val' );

    	$oCheck = Check::RUN();

   	    if( $sInputAjaxField=='domain_ip' && !Check::C( $sInputAjaxVal,'ip' ) ){

   	   	     $this->E( G::L( 'IP格式不正确！','dyhb' ) );
   	    }
    }

}
